﻿package cn.ffcs.businessrequest.model;


import cn.ffcs.base.model.BaseEntity;
import cn.ffcs.bpm.model.ProcessConfigDetail;
import cn.ffcs.system.dict.model.Dict;

/**
 * 产品目录实体类：定义基本属性<br/>
 * <table>
 * <tr>
 * <td>负责人/principal:</td>
 * <td colspan="2">g.pany</td>
 * <tr>
 * <td>修改记录/revision:</td>
 * <td colspan="2"></td>
 * </tr>
 * <tr>
 * <td>日期:2010-1-11</td>
 * <td>修改人:g.pany</td>
 * <td>修改说明:</td>
 * </tr>
 * <tr>
 * <td></td>
 * <td></td>
 * <td></td>
 * </tr>
 * </table>
 * @author g.pany
 * @version $Id$
 */

public class ReqDocu extends BaseEntity
{

    /** TODO 请输入字段日志 */
    private static final long serialVersionUID = 8937480455347214967L;

    /** 文件名称**/
    private String name;
    
    /** 文件全称**/
    private String fullName;
    
    /** 关联实体**/
    private String refEntity;
    
    /** 关联实体id**/
    private String refEntityId;

    /** 文件类型**/
    private Dict docType;

    /** 文件后缀**/
    private String prefix;

    /** 文件大小**/
    private String length;

    /** 文件版本**/
    private String version;

    /** 文件内容**/
    private DocContent content;

    /** 文档类型名称**/
    private String docTypeName;

    /** 对应流程节点**/
    private ProcessConfigDetail processDetail;
    
    private Integer procinstId;
    
    private Integer recordId;    

    public String getFullName()
    {
        return fullName;
    }

    public void setFullName(String fullName)
    {
        this.fullName = fullName;
    }

    public String getLength()
    {
        return length;
    }

    public void setLength(String length)
    {
        this.length = length;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getPrefix()
    {
        return prefix;
    }

    public void setPrefix(String prefix)
    {
        this.prefix = prefix;
    }

    public String getRefEntity()
    {
        return refEntity;
    }

    public void setRefEntity(String refEntity)
    {
        this.refEntity = refEntity;
    }

    public String getRefEntityId()
    {
        return refEntityId;
    }

    public void setRefEntityId(String refEntityId)
    {
        this.refEntityId = refEntityId;
    }

    public String getVersion()
    {
        return version;
    }

    public void setVersion(String version)
    {
        this.version = version;
    }

    public DocContent getContent()
    {
        return content;
    }

    public void setContent(DocContent content)
    {
        this.content = content;
    }

    public Dict getDocType()
    {
        return docType;
    }

    public void setDocType(Dict docType)
    {
        this.docType = docType;
    }

    public ProcessConfigDetail getProcessDetail()
    {
        return processDetail;
    }

    public void setProcessDetail(ProcessConfigDetail processDetail)
    {
        this.processDetail = processDetail;
    }

    public String getDocTypeName()
    {
        if(docType!=null&&!"".equals(docType.getName())){
            return docType.getName();
        }
        return "其他附件";
    }

    public void setDocTypeName(String docTypeName)
    {
        this.docTypeName = docTypeName;
    }

	public Integer getProcinstId() {
		return procinstId;
	}

	public void setProcinstId(Integer procinstId) {
		this.procinstId = procinstId;
	}

	public Integer getRecordId() {
		return recordId;
	}

	public void setRecordId(Integer recordId) {
		this.recordId = recordId;
	}

    
}
